package org.ejc.persist.model;

import java.io.Serializable;
import java.util.Set;
import org.apache.commons.lang.builder.ToStringBuilder;


/** @author Hibernate CodeGenerator */
public class RegistrantType implements Serializable {

    /** identifier field */
    private Integer registrantTypeId;

    /** nullable persistent field */
    private String registrantTypeDesc;

    /** persistent field */
    private Set conventionRegistrants;

    /** full constructor */
    public RegistrantType(Integer registrantTypeId, String registrantTypeDesc, Set conventionRegistrants) {
        this.registrantTypeId = registrantTypeId;
        this.registrantTypeDesc = registrantTypeDesc;
        this.conventionRegistrants = conventionRegistrants;
    }

    /** default constructor */
    public RegistrantType() {
    }

    /** minimal constructor */
    public RegistrantType(Integer registrantTypeId, Set conventionRegistrants) {
        this.registrantTypeId = registrantTypeId;
        this.conventionRegistrants = conventionRegistrants;
    }

    public Integer getRegistrantTypeId() {
        return this.registrantTypeId;
    }

    public void setRegistrantTypeId(Integer registrantTypeId) {
        this.registrantTypeId = registrantTypeId;
    }

    public String getRegistrantTypeDesc() {
        return this.registrantTypeDesc;
    }

    public void setRegistrantTypeDesc(String registrantTypeDesc) {
        this.registrantTypeDesc = registrantTypeDesc;
    }

    public Set getConventionRegistrants() {
        return this.conventionRegistrants;
    }

    public void setConventionRegistrants(Set conventionRegistrants) {
        this.conventionRegistrants = conventionRegistrants;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("registrantTypeId", getRegistrantTypeId())
            .toString();
    }

}
